
if (window != window.top) {
    let host = null;
    let pathname = null;
    try {
      host = window.top.location.host;
      pathname = window.top.location.pathname;
    } catch (e) { }
    const parentURL = host + pathname;
    const whitelist = [
      "flightadminapi.17usoft.com/dapserver/",
      "flightadminapi.t.17usoft.com/dapserver/",
      "flightadminapi.17usoft.com/FineReport/ReportServer"
    ];
    if (whitelist.find((i) => i === parentURL) === undefined)window.top.location.replace("http://flightadminapi.17usoft.com/dapserver/");
  }